package com.example.myapplication2.app;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

/**
 * Created with IntelliJ IDEA.
 * User: Dean.Hwang
 * Date: 2016/2/18
 * Time: 17:29
 */
public class BroadReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Toast.makeText(context, intent.getStringExtra("data"),
                Toast.LENGTH_SHORT).show();
    }
}
